package cn.stylefeng.guns.modular.wxuser.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 微信用户表
 * </p>
 *
 * @author CHENCHEN
 * @since 2023-02-01
 */
@TableName("wx_user")
public class WxUser implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户openid，当前公众号用户唯一标识
     */
    @TableField("openid")
    private String openid;

    /**
     * 关注状态，0取消，1订阅
     */
    @TableField("subscribe")
    private Integer subscribe;

    /**
     * 昵称
     */
    @TableField("nickname")
    private String nickname;

    /**
     * 性别，1是男，2是女，0是未知
     */
    @TableField("sex")
    private Integer sex;

    /**
     * 城市
     */
    @TableField("city")
    private String city;

    /**
     * 国家
     */
    @TableField("country")
    private String country;

    /**
     * 省份
     */
    @TableField("province")
    private String province;

    /**
     * 语言
     */
    @TableField("language")
    private String language;

    /**
     * 头像地址
     */
    @TableField("headimgurl")
    private String headimgurl;

    /**
     * 关注时间
     */
    @TableField("subscribeTime")
    private Date subscribeTime;

    /**
     * 多个公众号用户唯一标识
     */
    @TableField("unionid")
    private String unionid;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 分组
     */
    @TableField("groupid")
    private String groupid;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public Integer getSubscribe() {
        return subscribe;
    }

    public void setSubscribe(Integer subscribe) {
        this.subscribe = subscribe;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public String getHeadimgurl() {
        return headimgurl;
    }

    public void setHeadimgurl(String headimgurl) {
        this.headimgurl = headimgurl;
    }

    public Date getSubscribeTime() {
        return subscribeTime;
    }

    public void setSubscribeTime(Date subscribeTime) {
        this.subscribeTime = subscribeTime;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getGroupid() {
        return groupid;
    }

    public void setGroupid(String groupid) {
        this.groupid = groupid;
    }

    @Override
    public String toString() {
        return "WxUser{" +
        "id=" + id +
        ", openid=" + openid +
        ", subscribe=" + subscribe +
        ", nickname=" + nickname +
        ", sex=" + sex +
        ", city=" + city +
        ", country=" + country +
        ", province=" + province +
        ", language=" + language +
        ", headimgurl=" + headimgurl +
        ", subscribeTime=" + subscribeTime +
        ", unionid=" + unionid +
        ", remark=" + remark +
        ", groupid=" + groupid +
        "}";
    }
}
